encode{
  if (!(msg instanceof PeerWireMessage))   return msg;
  final PeerWireMessage message=(PeerWireMessage)msg;
  final ChannelBuffer buffer=ChannelBuffers.dynamicBuffer();
  return buffer;
}
setHandshaked{ }
